model = smf.ols(formula='years_in_labour_force ~ age', data=training)
results = model.fit()
results.summary()| committed | prediction | |
|---|---|---|
| person_id | ||
| 203 | 1 | 0.84 |
| 266 | 1 | 0.58 |
| age | committed | prediction | |
|---|---|---|---|
| person_id | |||
| 42 | 29.50843 | 1 | True |
| 281 | 50.42585 | 1 | True |
| 295 | 29.02093 | 0 | True |
| 157 | 34.13484 | 1 | True |
| 238 | 33.00470 | 1 | True |
avarotsis@no10.gov.uk